import Layout from '@/layout/index'
export default [
  {
    path: '/system',
    component: Layout,
    redirect: 'noredirect',
    hidden: false,
    alwaysShow: true,
    meta: {
      icon: 'system',
      noCache: true,
      title: '社区管理'
    },
    children: [
      {
        path: 'user',
        component: (resolve) => require(['@/views/system/user'], resolve),
        name: 'User',
        meta: { title: '用户管理', icon: 'peoples', noCache: true }
      },
      {
        path: 'role',
        component: (resolve) => require(['@/views/system/role'], resolve),
        name: 'Role',
        meta: { title: '角色管理', icon: 'role', noCache: true }
      },
      {
        path: 'menu',
        component: (resolve) => require(['@/views/system/menu'], resolve),
        name: 'Menu',
        meta: { title: '菜单管理', icon: 'menu', noCache: true }
      },
      {
        path: 'dept',
        component: (resolve) => require(['@/views/system/dept'], resolve),
        name: 'Dept',
        meta: { title: '社区管理', icon: 'dept', noCache: true }
      },
      {
        path: 'notice',
        component: (resolve) => require(['@/views/system/notice'], resolve),
        name: 'Notice',
        meta: { title: '活动公告', icon: 'notice', noCache: true }
      }
    ]
  }
]
